package com.woniuxy.stage3demo.service.hpxservice.impl;

import com.woniuxy.stage3demo.bean.chenyuxuanBean.StaffBean;
import com.woniuxy.stage3demo.mapper.hpxmapper.SystemMapper;
import com.woniuxy.stage3demo.service.hpxservice.ISystemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
@Transactional(readOnly = true)
public class SystemServiceImpl implements ISystemService {

    @Resource
    private SystemMapper systemMapper;

    @Override
    public StaffBean login(String loginName, String password) {
        return systemMapper.login(loginName,password);
    }

    @Override
    public StaffBean login(String loginName) {
        return systemMapper.loginByName(loginName);
    }
}
